<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv= "X-UA-Compatible" content = "IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>博艺网-订单列表</title>
    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm.min.css">
    <script type='text/javascript' src='//g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
    <script type='text/javascript' src='http://m.sui.taobao.org/assets/js/zepto.js' charset='utf-8'></script>
    <script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script>
    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/??sm.min.css,sm-extend.min.css">
    <script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/??sm.min.js,sm-extend.min.js' charset='utf-8'></script>
</head>
<body>

<#--<header class="bar bar-nav">-->
    <#--<h1 class="title">卡片</h1>-->
<#--</header>-->
<div class="content">

    <#if orderList??>
        <#list orderList as order>
            <div class="card" style="margin: 5px 0;">
                <div class="card-header">订单号:${order.getId()?string}</div>
                <div class="card-content">
                    <div class="list-block media-list">
                        <ul>
                            <li class="item-content">
                                <div class="item-media">
                                    <img src="http://img.boyitongcheng.com/${order.getBizUser().getAvatar()!''}" width="44">
                                </div>

                                <#if user?? && user.getId() == order.getUserId()>
                                    <div class="item-inner">
                                        <div class="item-title-row">
                                            <div class="item-title">${order.getBizUser().getCnName()}</div>
                                        </div>
                                        <div class="item-subtitle">${order.getBizUser().getCity()!''}</div>
                                    </div>
                                <#else >
                                    <div class="item-inner">
                                        <div class="item-title-row">
                                            <div class="item-title">${order.getUser().getCnName()}</div>
                                        </div>
                                        <div class="item-subtitle">${order.getUser().getCity()!''}</div>
                                    </div>
                                </#if>



                            </li>
                        </ul>
                    </div>
                </div>
                <div class="card-footer">
                    <span>下单时间:${order.getCreateTime()?date("yyyy-MM-dd")}</span>
                    <span>订单金额:￥${order.getPrice()?string("0.00")}元</span>
                </div>
                <div class="card-footer">
                    <span>&nbsp;</span>
                    <span>
                <div class="content-block">
                    <p><a href="/weixin/order_detail?order_id=${order.getId()?string}" class="button">查看订单</a></p>
              </div>
            </span>
                </div>
            </div>
        </#list>

    </#if>


</div>

</body>
</html>